package metamodels;

import java.util.List;

import parser.generic.Node;

public class Extensions extends Node {

	IdentifiersComma identifiers;

	public Extensions(IdentifiersComma identifiersComma) {
		this.identifiers = identifiersComma;
	}

	public Extensions() {
	}

	@Override
	public String toString() {
		if (identifiers == null)
			return "";

		return " extends " + identifiers;
	}

	public List<Identifier> getIdentifiers() {
		if (identifiers != null)
			return identifiers.getIdentifiers();

		return null;
	}
}
